package HelloWorld;

import java.util.Scanner;
public class HelloWorld {
    public static void main(String[] args) {
//水仙花数   1.三位数    2.
        int count = 0;
        for (int a = 100; a < 1000; a++) {
            int x = (int) Math.pow((a % 10), 3);
            int y = (int) Math.pow(a / 10 % 10, 3);
            int z = (int) Math.pow(a / 100, 3);
            if (a == x + y + z) {
                System.out.print(a + "是水仙花数");
                count++;
                if (count % 2 == 0) {
                    System.out.println();
                }
            }
        }
        //fdfgdfgdgf
    }
}


